package cn.tedu.music.admin.service.impl;

import cn.tedu.music.admin.dao.persist.repository.impl.PlayListRepositoryImpl;
import cn.tedu.music.admin.pojo.entity.ListTop;
import cn.tedu.music.admin.pojo.vo.ListTopVO;
import cn.tedu.music.admin.pojo.vo.PlayListVO;
import cn.tedu.music.admin.service.IPlayListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PlayListServiceImpl implements IPlayListService {
    @Autowired
    PlayListRepositoryImpl playListRepository;
    public List<PlayListVO> getPlayList() {
        List<PlayListVO> list = playListRepository.getPlayList();
        return list;
    }

    @Override
    public ListTopVO getListTop() {
        ListTopVO listTop = playListRepository.getListTop();
        return listTop;
    }
}
